﻿using SmartSpace.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Workflow
{
    public class WorkflowStep : IKeyEntity
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 所对应的流程id
        /// </summary>
        public Guid WorkflowId { get; set; }
        /// <summary>
        /// 所处的活动id
        /// </summary>
        public Guid ActivityId { get; set; }
        /// <summary>
        /// 所对应的流程实例id
        /// </summary>
        public Guid InstanceId { get; set; }

        public string Sender { get; set; }
        public DateTime SendedDate { get; set; }
        public string Receiver { get; set; }
        /// <summary>
        /// 查看时间
        /// </summary>
        public DateTime? ViewedDate { get; set; }

        public bool IsActive { get; set; }
        public bool IsInitial { get; set; }
        public bool IsFinal { get; set; }

        public void Validation()
        {
            throw new NotImplementedException();
        }
    }
}
